package com.zbkj.common.enums;

import lombok.Getter;

import java.util.Objects;

/**
 * @Auther:
 * @Date: 2024/10/8 19:39
 * @Description:
 */
public enum ProjectTypeEnum {
    //项目类型  1国标 2军标

    TYPE1(1),
    TYPE2(2);

    @Getter
    private int type;

    ProjectTypeEnum(int type) {
        this.type = type;
    }

    public static boolean isType1(Integer type) {
        return Objects.nonNull(type) && TYPE1.getType() == type;
    }

    public static boolean isType2(Integer type) {
        return Objects.nonNull(type) && TYPE2.getType() == type;
    }
}
